/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package elevatronic.controllers;

import pl.gdan.elsy.qconf.Action;

/**
 *
 * @author Exosta
 */
public class Stop extends Action {

    private ArtificialElevator elevator;
    
    public int execute() {
        if (this.elevator.getElevator().getCurrentFloor() == this.elevator.getElevator().getTargettedFloor()) {
            // People step out of the elevator
            for (int i = 0; i < this.elevator.getElevator().getPeopleInElevator().size(); i++) {
                this.elevator.getElevator().getPeopleInElevator().get(i).getEndingPoint();
            }
            for (int i = 0; i < this.elevator.getBuilding().getFloors())               
        }
        
        return 1;
    }
    
}
